<template>
  <div class="person">
    <h2>我是Person组件</h2>
    <h4>姓名：{{name}}</h4>
    <h4>年龄：{{age}}</h4>
    <h4>座驾：{{car}}</h4>
  </div>
</template>

<script>
  export default {
    name:'Person',
    data() {
      return {
        a:1
      }
    },
    props:['car','name','age'],
  }
</script>

<style scoped>
  .person {
    background-color: skyblue;
    padding: 10px;
  }
</style>